package com.augmentum.oes.model;

import java.util.Date;

import com.augmentum.oes.annotation.Orm.Column;
import com.augmentum.oes.annotation.Orm.Table;

@Table("user")
public class User {
    @Column("id")
    private int userId;
    @Column("user_name")
    private String userName;
    @Column
    private String password;
    @Column
    private String gender;
    @Column("role_type")
    private int roleType;
    @Column("telephone_number")
    private String telephoneNumber;
    @Column("email_address")
    private String emailAddress;
    @Column("chinese_name")
    private String chineseName;
    @Column("create_time")
    private Date createTime;
    @Column("last_login")
    private Date lastLogin;
    private int language;

    public User() {
        super();
        language = 1;
    }
    public User(int userId, String userName, String password) {
        super();
        this.userId = userId;
        this.userName = userName;
        this.password = password;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public int getRoleType() {
        return roleType;
    }
    public void setRoleType(int roleType) {
        this.roleType = roleType;
    }
    public String getTelephoneNumber() {
        return telephoneNumber;
    }
    public void setTelephoneNumber(String telephoneNumber) {
        this.telephoneNumber = telephoneNumber;
    }
    public String getEmailAddress() {
        return emailAddress;
    }
    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }
    public String getChineseName() {
        return chineseName;
    }
    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getLastLogin() {
        return lastLogin;
    }
    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }
    
    public int getLanguage() {
        return language;
    }
    public void setLanguage(int language) {
        this.language = language;
    }
    @Override
    public String toString() {
        return "User [userId=" + userId + ", userName=" + userName + ", password=" + password + ", gender=" + gender
                + ", roleType=" + roleType + ", telephoneNumber=" + telephoneNumber + ", emailAddress=" + emailAddress
                + ", chineseName=" + chineseName + ", createTime=" + createTime + ", lastLogin=" + lastLogin + "]";
    }


}
